package com.mornd.gulimall.apis.cart;

import com.mornd.gulimall.apis.cart.to.CartItemTo;
import com.mornd.gulimall.common.core.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author: mornd
 * @dateTime: 2023/8/21 - 22:20
 */

@FeignClient(name = "service-cart")
public interface ICartClient {

    @GetMapping("/cart/getCartItems/{userId}")
    R<List<CartItemTo>> getCartItems(@PathVariable Long userId);
}
